Under normal circumstances, if I want to switch to root can be directly with sudo-i and then enter the password login root, but today read the textbook said Linux is used su-root switch, so the hand cheap try, and then appeared su:authentication
Today, we will introduce two Ubuntu commands: sudo and susudo, which are called super-userdo, so that the current user can temporarily run this command as the root administrator. Su is used to change the current user. suroot is used to switch the
Open a Command WindowInput command: sudo passwd rootThen follow the steps in.The differences between the Su and SU commands:The most essential difference between the SU command and the Su-command is that the former simply switches the root identity,
Differences between Linux su and sudo commandsI. Use the su command to temporarily switch user identities 1. Conditions and power of su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a
Go to Ubuntu and run the root permission command-sudo and Su commands for Ubuntu user management
Sudo refers to super-user do, which allows the current user to temporarily run this command as the administrator.
Su is used to change the current user.
Ubuntu enters root permission command--sudo and su command details
Ubuntu User Management sudo means super-user do, which allows the current user to temporarily execute this command as the administrator's identity root.Su is used to
Deep understanding of the difference between Sudo and SuThe maximum difference between the two commands is:The sudo command needs to enter the current user's password, and the SU command needs to enter the root user's password. Another difference is
UbuntuAfter installation, the root user is locked by default and cannot log on or "Su"Root. Some people say this is a bad practice, especially for servers. I think it should be more secure for desktop users, but it can be set to "allow Su" for
Decompress the/tmp/etc.tar.gz file under/usr/local/src [root @ Linux ~] # Cd/usr/local/src [root @ Linux SRC] # tar-zxvf/tmp/etc.tar.gz # by default, We can unbind the compression file anywhere! In this example, # first change the working directory
Su-#su-oldboy//When executing this command, switch to Oldboy user, and re-read the user environment-related configuration file, specifically to execute under the user home directory. Bash_profile and. bashrc files, this we become the full switch
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.